package net.apexes.demo.codegen.ormlite.annotation.entity;

import com.j256.ormlite.field.*;
import com.j256.ormlite.table.*;
import net.apexes.demo.codegen.entity.base.OrmliteEntityBase;

/**
 * AuthUser. Corresponds to the database table "AUTH_USER"
 */
@DatabaseTable(tableName = "AUTH_USER")
public class AuthUser extends OrmliteEntityBase {

    private static final long serialVersionUID = 1L;

    /**
     * The columns of table "AUTH_USER"
     */
    public interface $ extends OrmliteEntityBase.$ {

        /**
         * EMAIL
         */
        public static final String email = "EMAIL";

        /**
         * MOBILE_NUMBER
         */
        public static final String mobileNumber = "MOBILE_NUMBER";

        /**
         * NIKE_NAME
         */
        public static final String nikeName = "NIKE_NAME";

        /**
         * PASSWORD
         */
        public static final String password = "PASSWORD";

        /**
         * USERNAME
         */
        public static final String username = "USERNAME";

    }

    @DatabaseField(columnName = $.email)
    private String email;

    @DatabaseField(columnName = $.mobileNumber)
    private String mobileNumber;

    @DatabaseField(columnName = $.nikeName)
    private String nikeName;

    @DatabaseField(columnName = $.password, canBeNull = false)
    private String password;

    @DatabaseField(columnName = $.username, canBeNull = false)
    private String username;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobileNumber() {
        return mobileNumber;
    }

    public void setMobileNumber(String mobileNumber) {
        this.mobileNumber = mobileNumber;
    }

    public String getNikeName() {
        return nikeName;
    }

    public void setNikeName(String nikeName) {
        this.nikeName = nikeName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(super.toString());
        sb.append(",email=").append(email);
        sb.append(",mobileNumber=").append(mobileNumber);
        sb.append(",nikeName=").append(nikeName);
        sb.append(",password=").append(password);
        sb.append(",username=").append(username);
        return sb.toString();
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

}

